package com.lxk.index.banner.domain.bo;

import com.lxk.index.banner.domain.IndexBanner;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 首页轮播图管理业务对象 index_banner
 *
 * @author soda
 * @date 2024-07-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IndexBanner.class, reverseConvertGenerate = false)
public class IndexBannerBo extends BaseEntity {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 轮播图地址
     */
    @NotBlank(message = "轮播图地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 视频封面图
     */
    @NotBlank(message = "视频封面图不能为空", groups = { AddGroup.class, EditGroup.class })
    private String poster;

    /**
     * 跳转地址
     */
    @NotBlank(message = "跳转地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String valueId;

    /**
     * 轮播图跳转类型
     */
    @NotBlank(message = "轮播图跳转类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String jumpType;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 状态：0开启1关闭
     */
    @NotBlank(message = "状态：0开启1关闭不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 排序状态
     */
    @NotNull(message = "排序状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer sortStatus;

    /**
     * 轮播图类型
     */
    @NotBlank(message = "轮播图类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;


}
